<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{xypjjlForm.bundleName}"/>
    <head>
        <title>#{text['xypjjlDetail.title']}</title>
        <meta name="heading" content="#{text['xypjjlDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="xypjjlForm">

<h:form id="xypjjlForm" onsubmit="return validateXypjjlForm(this)">
<h:inputHidden value="#{xypjjlForm.xypjjl.id}" id="id"/>
<h:inputHidden value="#{xypjjlForm.xypjjl.version}" id="version"/>
<h:panelGrid columns="3">
    <h:outputLabel styleClass="desc" for="cpdj" value="#{text['xypjjl.cpdj']}"/>
    <t:message for="cpdj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="cpdj" value="#{xypjjlForm.xypjjl.cpdj}" required="false" maxlength="10">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="jzsj" value="#{text['xypjjl.jzsj']}"/>
    <t:message for="jzsj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="jzsj" value="#{xypjjlForm.xypjjl.jzsj}" required="false" maxlength="10">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="kssj" value="#{text['xypjjl.kssj']}"/>
    <t:message for="kssj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="kssj" value="#{xypjjlForm.xypjjl.kssj}" required="false" maxlength="10">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="ny" value="#{text['xypjjl.ny']}"/>
    <t:message for="ny" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="ny" value="#{xypjjlForm.xypjjl.ny}" required="true" maxlength="255">
        <v:commonsValidator type="required" arg="#{text['xypjjl.ny']}"/>
    </h:inputText>
    <h:outputLabel styleClass="desc" for="pjscrymc" value="#{text['xypjjl.pjscrymc']}"/>
    <t:message for="pjscrymc" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="pjscrymc" value="#{xypjjlForm.xypjjl.pjscrymc}" required="false" maxlength="10">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="pjscrymc2" value="#{text['xypjjl.pjscrymc2']}"/>
    <t:message for="pjscrymc2" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="pjscrymc2" value="#{xypjjlForm.xypjjl.pjscrymc2}" required="false" maxlength="10">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="pjscryyj" value="#{text['xypjjl.pjscryyj']}"/>
    <t:message for="pjscryyj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="pjscryyj" value="#{xypjjlForm.xypjjl.pjscryyj}" required="false" maxlength="300">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="result1" value="#{text['xypjjl.result1']}"/>
    <t:message for="result1" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="result1" value="#{xypjjlForm.xypjjl.result1}" required="false" maxlength="4">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="result2" value="#{text['xypjjl.result2']}"/>
    <t:message for="result2" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="result2" value="#{xypjjlForm.xypjjl.result2}" required="false" maxlength="4">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="result3" value="#{text['xypjjl.result3']}"/>
    <t:message for="result3" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="result3" value="#{xypjjlForm.xypjjl.result3}" required="false" maxlength="4">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="result4" value="#{text['xypjjl.result4']}"/>
    <t:message for="result4" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="result4" value="#{xypjjlForm.xypjjl.result4}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="zjwyhyj" value="#{text['xypjjl.zjwyhyj']}"/>
    <t:message for="zjwyhyj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zjwyhyj" value="#{xypjjlForm.xypjjl.zjwyhyj}" required="false" maxlength="300">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="zzxydj" value="#{text['xypjjl.zzxydj']}"/>
    <t:message for="zzxydj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zzxydj" value="#{xypjjlForm.xypjjl.zzxydj}" required="false" maxlength="10">
    </h:inputText>

    <h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{xypjjlForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty xypjjlForm.xypjjl.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{xypjjlForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Xypjjl')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
    </h:panelGroup>
    <h:outputText/><h:outputText/>
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateXypjjlForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('xypjjlForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
